package com.cdu.practicaltraining.sys.mapper;

import com.cdu.practicaltraining.pojo.DictDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DictDetailMapper {

    @Insert("INSERT INTO t_dict_detail(dict_id, dtag, dval, dorder, mark, create_by, update_by) VALUES (#{dictId},#{dtag},#{dval},#{dorder},#{mark},#{create_by},#{update_by})")
    int insertDetail(DictDetail dictDetail) throws Exception;

    @Select("SELECT dtag from t_dict_detail where dtag = #{dtag}")
    DictDetail findDictDetail(String dtag);
}
